import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index.js'
import toast from '@/components/common/toast'


import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

// Es6语法
require('es6-promise').polyfill();
require('es6-promise/auto');

Vue.config.productionTip = false

//解决移动端300ms延迟
FastClick.attach(document.body)

//安装懒加载插件
Vue.use(VueLazyLoad, {
    loading: require('@/assets/img/common/placeholder.png')
})

//安装toast插件
Vue.use(toast)


new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')